<%--
  Created by IntelliJ IDEA.
  User: asus
  Date: 2018-08-10
  Time: 21:00
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<link rel="stylesheet" href="${pageContext.request.contextPath}/static/bootstrap/css/bootstrap.css"/>

<link rel="stylesheet" href="${pageContext.request.contextPath}/static/table/bootstrap-table.min.css"/>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/table/bootstrap-table.min.js"></script>
<script type="text/javascript"
        src="${pageContext.request.contextPath}/static/table/locale/bootstrap-table-zh-CN.min.js"></script>
<link rel="stylesheet" href="${pageContext.request.contextPath}/static/date/bootstrap-datetimepicker.min.css"/>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/date/Moment.js"></script>
<script type="text/javascript"
        src="${pageContext.request.contextPath}/static/date/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/layui.js"></script>

<link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/tongyong.css"/>
<link rel="stylesheet" href="${pageContext.request.contextPath}/static/easyui/easyui.css"/>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/easyui/icon.css">
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/easyui/demo.css">

<script type="text/javascript" src="${pageContext.request.contextPath}/static/easyui/jquery.easyui.min.js"></script>

<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/shequfuwu/baoxiubiao.js"></script>



<html>
<head>
    <title>保修表</title>
</head>
<body>
<div class="panel panel-default">
        <div class="panel-body">
        <%--查询--%>
        <form class="form-inline">
            <%--添加按钮--%>
            <button type="button" style="margin-left: 15px;margin-right: 15px;" class="btn btn-default navbar-btn"  data-target="#myModal" data-toggle="modal">增加</button>&nbsp;
            <%--按时间查询--%>
            <div  class="input-group input-daterange">
                <input id="shijianyi" type="text" class="form-control">
                <div class="input-group-addon">到：</div>
                <input id="shijianer" type="text" class="form-control">
            </div>
                <label>维修状态:</label>
                <select id="type" name="interest" class="form-control">
                    <option value="-1">请选择</option>
                    <option value="1">已维修</option>
                    <option value="2">未维修</option>
                </select>

                <button onclick="ban()" type="button" class="btn btn-default">查询</button>
        </form>
        <table id="Stable"></table>
    </div>
</div>

<!-- 模态框 -->
<!-- Modal -->
<div class="modal fade" id="myModal">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="myModalLabel">保安巡查</h4>
            </div>
            <div class="modal-body">
                <!-- form开始 -->
                <form>
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title" id="myModalLabel11">报修人信息</h4>
                    </div>
                    <div class="modal-body">
                        <!-- form开始 -->
                        <form>

                            <div class="form-group">
                                <label>门牌:</label> <input type="text" class="form-control" onclick="san()" id="Smenpai">
                            </div>
                            <div class="form-group">
                                <label>姓名:</label> <input type="text" class="form-control" id="Sname">
                            </div>
                            <div class="form-group">
                                <label>联系方式:</label> <input type="text" class="form-control" id="Sphone">
                            </div>
                        </form>
                    </div>
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title" id="myModalLabel22">维修信息</h4>
                    </div>
                    <div class="modal-body">
                        <!-- form开始 -->
                        <form>
                            <div class="form-group">
                                <label>保修编号:</label> <input type="text" class="form-control" id="Sorder">
                            </div>
                            <div class="form-group">
                                <label>保修日期:</label> <input type="text" class="form-control" id="Sdate">
                            </div>
                            <div class="form-group">
                                <label>维修状态:</label>
                                <select id="Stype" name="interest" class="form-control">
                                    <option value="-1">请选择</option>
                                    <option value="1">已维修</option>
                                    <option value="2">未维修</option>
                                </select>
                            </div>
                            <div class="form-group">
                                <label>维修员工:</label> <input type="text" class="form-control" id="Swname">
                            </div>
                            <div class="form-group">
                                <label>物资费用:</label> <input type="text" class="form-control" id="Swmoney">
                            </div>
                            <div class="form-group">
                                <label>服务费用:</label> <input type="text" class="form-control" id="Srmoney">
                            </div>
                            <div class="form-group">
                                <label>保修内容:</label> <input type="text" class="form-control" id="Sneirong">
                            </div>
                            <div class="form-group">
                                <label>备注信息:</label> <input type="text" class="form-control" id="Stext">
                            </div>
                        </form>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button onclick="add2()" type="button" class="btn btn-primary" data-dismiss="modal">确认</button>
            </div>
        </div>
    </div>
</div>













<%--双击打开--%>
<div class="modal fade" id="myModal2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div style="width: 500px;" class="modal-dialog" role="document">
        <div class="modal-content">


            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel1">报修人信息</h4>
            </div>
            <div class="modal-body">
                <!-- form开始 -->
                <form>
                    <input type="hidden" id="yin1">

                    <div class="form-group">
                        <label>门牌:</label> <input type="text" class="form-control" id="menpai" readonly="readonly">
                    </div>
                    <div class="form-group">
                        <label>姓名:</label> <input type="text" class="form-control" id="name">
                    </div>
                    <div class="form-group">
                        <label>联系方式:</label> <input type="text" class="form-control" id="phone">
                    </div>
                </form>
            </div>



            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel2">维修信息</h4>
            </div>
            <div class="modal-body">
                <!-- form开始 -->
                <form>
                    <div class="form-group">
                        <label>保修编号:</label> <input type="text" class="form-control" id="order" readonly="readonly">
                    </div>
                    <div class="form-group">
                        <label>保修日期:</label> <input type="text" class="form-control" id="date">
                    </div>
                    <div class="form-group">
                        <label>维修状态:</label>
                        <select id="SStype" name="interest" class="form-control">
                            <option value="-1">请选择</option>
                            <option value="1">已维修</option>
                            <option value="2">未维修</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label>维修员工:</label> <input type="text" class="form-control" id="wname">
                    </div>
                    <div class="form-group">
                        <label>物资费用:</label> <input type="text" class="form-control" id="wmoney">
                    </div>
                    <div class="form-group">
                        <label>服务费用:</label> <input type="text" class="form-control" id="rmoney">
                    </div>
                    <div class="form-group">
                        <label>保修内容:</label> <input type="text" class="form-control" id="neirong">
                    </div>
                    <div class="form-group">
                        <label>备注信息:</label> <input type="text" class="form-control" id="text">
                    </div>
                </form>
            </div>

            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                <button type="button" id="ddd" onclick="upd()" class="btn btn-primary" data-dismiss="modal">确认</button>
            </div>
        </div>
    </div>
</div>


<div class="modal fade" id="myModal3" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div style="width: 1800px;" class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel3">业主门牌</h4>
            </div>
            <div class="modal-body">
                <!-- form开始 -->
                <form>
                    <div id="da">
                        <div id="zuo">
                            <ul id="tt" class="easyui-tree" data-options="url:'${pageContext.request.contextPath}/sale/tree',method:'get',animate:true"></ul>
                        </div>
                        <div id="you">
                            <form class="form-inline">

                                <div>
                                    门牌编号:
                                    <select id="men" name="interest" class="form-control" style="width: 250px;">
                                        <option value="-1">请选择</option>
                                    </select>
                                </div>
                                <button onclick="search()" type="button" class="btn btn-default" style="">查询</button>

                            </form>
                            <table id="table"></table>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                <button type="button" id="Sddd" onclick="upd()" class="btn btn-primary" data-dismiss="modal">确认</button>
            </div>
        </div>
    </div>
</div>



</body>
<script type="text/javascript">

    $(function(){
        $.post("${pageContext.request.contextPath}/house/menpai2",function (releset) {
            var e=releset;
            $(e).each(function (i,e) {
                $('#men').append('<option value='+e.doornumber+' >'+e.doornumber+'</option>');
            })
        })
    })

</script>
</html>
